import type { RouteRecordRaw } from "vue-router";

export const loginRoutes = [
  {
    path: "/",
    name: "/",
    component: () => import("@/layout/index.vue"),
    redirect: "/login",
    meta: {
      isKeepAlive: true,
    },
    children: [],
  },
];

export const menu = [
  
  {
    path: "/home",
    name: "home",
    component: "home/index",
    meta: {
      title: "总览",
      isLink: "",
      isHide: false,
      isKeepAlive: true,
      isAffix: true,
      isIframe: false,
      iconShow: false,
      roles: ["admin", "common"],
      icon: "icon-总览-默认",
      activIcon: "icon-总览-选中",
    },
  },
  {
    path: "/road",
    name: "roadView",
    component: "road/index",
    meta: {
      title: "路网详情",
      isLink: "",
      isHide: false,
      isKeepAlive: true,
      isAffix: true,
      isIframe: false,
      iconShow: false,
      roles: ["admin", "common"],
      icon: "icon-路网详情-默认",
      activIcon: "icon-路网详情-选中",
    },
  },
];

export const routeList = [
  { path: "/", redirect: "/home" },
  {
    path: "/home",
    name: "home",
    component: () => import("@/views/home/index.vue"),
  },
  {
    path: "/dialogDemo",
    name: "dialogDemo",
    component: () => import("@/views/dialogDemo/index.vue"),
  },
  {
    path: "/layout",
    name: "layout",
    component: () => import("@/layout/index.vue"),
  },
  {
    path: "/testTable",
    name: "testTable",
    component: () => import("@/views/home/testTable.vue"),
  },
  {
    path: "/testTableClone",
    name: "testTableClone",
    component: () => import("@/views/home/testTableClone.vue"),
  },  
];
